/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pokemon.exceptions;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.exception.DefaultExceptionHandler;

/**
 *
 * @author Matoe
 */
public class ServerExceptionHandler extends DefaultExceptionHandler {
/**
* Handles exceptions caused by the web service, for instance
* the ones thrown when server is not available.
*
* @param exc Determines the type of exception to be handled
* @param request HTTP request
* @param response HTTP response
* @return
*/
public Resolution handleConnectException(javax.xml.ws.WebServiceException exc, HttpServletRequest request, HttpServletResponse response) {
return new ForwardResolution("/LostConnection.jsp");
}

}
    

